package com.qfedu.fmmall.user.controller;


import com.qfedu.fmmall.entity.Users;
import com.qfedu.fmmall.user.service.UserLoginCheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author : yanBin
 * @date :2022/1/21 10:54
 */
@RestController
@RequestMapping("/user")
public class UserLoginCheckController {
    @Autowired
    private UserLoginCheckService userLoginCheckService;

    @GetMapping("/check")
    public List<Users> getCheck(String username){
        return  userLoginCheckService.getCheck(username);
    }


}
